<template>
    <el-table-column align="center" :prop="header.jsonKey" :label="(header.required?'(必填) ':'')+ ' '+header.jsonValue" >
      <template v-for="subHeader in header.children" v-if="header.children&&header.children.length>0">
        <recursive-column :fromListObj="fromListObj" :header="subHeader" :key="subHeader.jsonKey"></recursive-column>
      </template>
      <template slot-scope="scope">
          <el-input v-model="scope.row[header.jsonKey]" placeholder="请输入内容"></el-input>
      </template>
    </el-table-column>
  </template>
  
  <script>
  export default {
    name: 'recursive-column',
    props: {
      header: Object
    }
  }
  </script>

  <style lang="scss" scoped>
  >>>.el-input--small .el-input__inner {
    border: none;
}
</style>
  